﻿using B.S.RbacData.ErrorCode;
using MediatR;

namespace SupplierCustomerManagement.Write.API.Applications.Commands
{
    /// <summary>
    /// 上传图片到MinIO命令
    /// </summary>
    public class UploadImageCommand : IRequest<ApiResult<string>>
    {
        /// <summary>
        /// 图片文件
        /// </summary>
        public IFormFile ImageFile { get; set; }

        /// <summary>
        /// 存储桶名称
        /// </summary>
        public string BucketName { get; set; } = "images";

        /// <summary>
        /// 文件前缀路径（可选）
        /// </summary>
        public string Prefix { get; set; } = "carousel";

        /// <summary>
        /// 是否生成唯一文件名
        /// </summary>
        public bool GenerateUniqueName { get; set; } = true;
    }
}
